<?php
/**
 * Created by PhpStorm.
 * User: huqi
 * Date: 17/7/6
 * Time: PM1:36
 */

namespace common\models;


use yii\db\ActiveRecord;

class BaseCommonModel extends ActiveRecord
{
    public static function batchInsert($table, $columns, $rows){
        return static::getDb()->createCommand()->batchInsert($table, $columns, $rows)->execute() ;
    }
}